<template>
	<view>
		<u-card title="记录查询">
			<view class="" slot="body">
				<u-collapse>
					<u-collapse-item title="加分记录">
						<u-cell-group>
							<u-cell-item title="按时归还教室" :arrow="false">+2</u-cell-item>
						</u-cell-group>
					</u-collapse-item>
					
					<u-collapse-item title="扣分记录 ">
						<u-cell-group>
							<u-cell-item title="未按时归还教室" :arrow="false">-2</u-cell-item>
						</u-cell-group>
					</u-collapse-item>
				</u-collapse>
			</view>
		</u-card>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		onLoad(){
			this.getCreditScore()
		},
		methods:{
		async	getCreditScore(){
				const {data:res} = await this.$myRequest({
					url:'/queryallrecord'
				})
				
				console.log(res[0].time)
				console.log(new Date(res[0].time))
			}
		}
	}
</script>

<style lang="scss" scoped>

</style>
